package com.lg.erp.service.impl.yqy;

import com.lg.erp.entity.yqy.TCategories;
import com.lg.erp.mapper.yqy.TCategoriesMapper;
import com.lg.erp.service.yqy.ITCategoriesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lg
 * @since 2021-04-21
 */
@Service
public class TCategoriesServiceImpl extends ServiceImpl<TCategoriesMapper, TCategories> implements ITCategoriesService {

    @Autowired
    private TCategoriesMapper categoriesMapper;

    /**
     * 调用mapper接口的方法查询所有分类
     * @return
     */
    @Override
    public List<TCategories> findAllCategories() {
        List<TCategories> list = categoriesMapper.findAllCategories();
        return list;
    }
}
